package com.yuyou.train.util.tool;

import org.apache.commons.codec.binary.Base64;
import org.apache.commons.lang3.RandomStringUtils;

import com.google.common.base.Charsets;

public class TokenUtil {
	
	public static String GenerateToken(){
        String token = RandomStringUtils.randomAlphabetic(18);
        token = Base64.encodeBase64URLSafeString(token.getBytes(Charsets.UTF_8));
        return token;
	}
	
}
